import request from '@/utils/request'

// 查询体检信息列表
export function listHpersonnelHeath(query) {
  return request({
    url: '/health/hpersonnelHeath/list',
    method: 'get',
    params: query
  })
}

// 查询体检信息详细
export function getHpersonnelHeath(id) {
  return request({
    url: '/health/hpersonnelHeath/' + id,
    method: 'get'
  })
}

// 新增体检信息
export function addHpersonnelHeath(data) {
  return request({
    url: '/health/hpersonnelHeath',
    method: 'post',
    data: data
  })
}

// 修改体检信息
export function updateHpersonnelHeath(data) {
  return request({
    url: '/health/hpersonnelHeath',
    method: 'put',
    data: data
  })
}

// 删除体检信息
export function delHpersonnelHeath(id) {
  return request({
    url: '/health/hpersonnelHeath/' + id,
    method: 'delete'
  })
}

export function syncPersonnelHeath(data) {
  return request({
    url: '/health/sync/personnelHeath',
    method: 'post',
    data: data
  })
}
